package com.li.flink.domain

class Access(device: String, deviceType: String, os: String, event: String,
             net: String, channel: String, uid: String, nu: Int, nu2: Int, ip: String,
             time: Long, version: String, product: Product
            ) {


  //  var device: String = null
  //  var deviceType: String = null
  //  var os: String = null
  //  var event: String = null
  //  var net: String = null
  //  var channel: String = null
  //  var uid: String = null
  //  var nu = 0 // 1新

  //  var nu2 = 0
  //  var ip: String = null // ==> ip去解析

  //  var time = 0L
  //  var version: String = null
  var province: String = null
  var city: String = null

  //  var product: Product = null

  override def toString: String = "Access{" + "device='" + device + '\'' + ", deviceType='" + deviceType + '\'' + ", os='" + os + '\'' + ", event='" + event + '\'' + ", net='" + net + '\'' + ", channel='" + channel + '\'' + ", uid='" + uid + '\'' + ", nu=" + nu + ", nu2=" + nu2 + ", ip='" + ip + '\'' + ", time=" + time + ", version='" + version + '\'' + ", province='" + province + '\'' + ", city='" + city + '\'' + ", product=" + product + '}'

  def getEvent = this.event

  def getOs = this.os

  def getNu = this.nu

  def getIp = this.ip

  def getTime = this.time

  def getProduct: Product = this.product

  def getProvince = this.province

  def setProvince(province: String) = {
    this.province = province
  }

  def getCity = this.city

  def setCity(city: String) = {
    this.city = city
  }


}
